<script setup>
// 子组件
import { inject } from 'vue'
const themeColor = inject('theme-color')
const count = inject('count')
const changeCount = inject('changeCount')
const clickFn = () => {
  //count = 100
  changeCount(1000)
}
</script>

<template>
  <div class="son">
    <h3>我是底部组件{{themeColor}} - {{count}}</h3>
    <button @click="clickFn">更新count</button>
  </div>
</template>

<style scoped>
.son{
  border: 1px solid #000;
  padding: 30px;
}
</style>
